#include "common.h"
#include "file_utils.h"
#include "mainloop.h"
int main(int argc, char **argv){
    if(argc == 1){
        printf("Usage: %s <dbfile>\n", argv[0]);
        return 1;
    }
    else{
        string db_file= argv[1];
        read_file(db_file);
        main_loop();
        write_file(db_file);
        return 0;
    }
}
